3.4 \(\int \frac{\sin (a+b \log (c x^n))}{x} \, dx\)

Optimal. Leaf size=19 \[ -\frac{\cos \left (a+b \log \left (c x^n\right )\right )}{b n} \]

[Out]

-(Cos[a + b*Log[c*x^n]]/(b*n))

________________________________________________________________________________________

Rubi [A]  time = 0.0151146, antiderivative size = 19, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.067, Rules used = {2638} \[ -\frac{\cos \left (a+b \log \left (c x^n\right )\right )}{b n} \]

Antiderivative was successfully verified.

[In]

Int[Sin[a + b*Log[c*x^n]]/x,x]

[Out]

-(Cos[a + b*Log[c*x^n]]/(b*n))

Rule 2638

Int[sin[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Cos[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin{align*} \int \frac{\sin \left (a+b \log \left (c x^n\right )\right )}{x} \, dx &=\frac{\operatorname{Subst}\left (\int \sin (a+b x) \, dx,x,\log \left (c x^n\right )\right )}{n}\\ &=-\frac{\cos \left (a+b \log \left (c x^n\right )\right )}{b n}\\ \end{align*}

Mathematica [A]  time = 0.0266074, size = 38, normalized size = 2. \[ \frac{\sin (a) \sin \left (b \log \left (c x^n\right )\right )}{b n}-\frac{\cos (a) \cos \left (b \log \left (c x^n\right )\right )}{b n} \]

Antiderivative was successfully verified.

[In]

Integrate[Sin[a + b*Log[c*x^n]]/x,x]

[Out]

-((Cos[a]*Cos[b*Log[c*x^n]])/(b*n)) + (Sin[a]*Sin[b*Log[c*x^n]])/(b*n)

________________________________________________________________________________________

Maple [A]  time = 0.017, size = 20, normalized size = 1.1 \begin{align*} -{\frac{\cos \left ( a+b\ln \left ( c{x}^{n} \right ) \right ) }{bn}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(a+b*ln(c*x^n))/x,x)

[Out]

-cos(a+b*ln(c*x^n))/b/n

________________________________________________________________________________________

Maxima [A]  time = 1.13855, size = 26, normalized size = 1.37 \begin{align*} -\frac{\cos \left (b \log \left (c x^{n}\right ) + a\right )}{b n} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(a+b*log(c*x^n))/x,x, algorithm="maxima")

[Out]

-cos(b*log(c*x^n) + a)/(b*n)

________________________________________________________________________________________

Fricas [A]  time = 0.494714, size = 53, normalized size = 2.79 \begin{align*} -\frac{\cos \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}{b n} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(a+b*log(c*x^n))/x,x, algorithm="fricas")

[Out]

-cos(b*n*log(x) + b*log(c) + a)/(b*n)

________________________________________________________________________________________

Sympy [A]  time = 3.06634, size = 39, normalized size = 2.05 \begin{align*} \begin{cases} \log{\left (x \right )} \sin{\left (a \right )} & \text{for}\: b = 0 \wedge \left (b = 0 \vee n = 0\right ) \\\log{\left (x \right )} \sin{\left (a + b \log{\left (c \right )} \right )} & \text{for}\: n = 0 \\- \frac{\cos{\left (a + b n \log{\left (x \right )} + b \log{\left (c \right )} \right )}}{b n} & \text{otherwise} \end{cases} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(a+b*ln(c*x**n))/x,x)

[Out]

Piecewise((log(x)*sin(a), Eq(b, 0) & (Eq(b, 0) | Eq(n, 0))), (log(x)*sin(a + b*log(c)), Eq(n, 0)), (-cos(a + b
*n*log(x) + b*log(c))/(b*n), True))

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sin \left (b \log \left (c x^{n}\right ) + a\right )}{x}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(a+b*log(c*x^n))/x,x, algorithm="giac")

[Out]

integrate(sin(b*log(c*x^n) + a)/x, x)